package com.efast.dmom.mes.datahandlers.base;



import java.util.List;

import com.efast.dmom.mes.bean.ResultBean;
import com.efast.dmom.mes.bean.base.BaseBean;

/**
 * @author Aaron Liu
 *
 * @date:2020年2月7日
 */
public abstract class DataHandler<T extends BaseBean<?>> extends Handler{

	public abstract ResultBean save(T obj);
	public abstract ResultBean update(T obj);
	public abstract ResultBean delete(T obj);
	
	
	public abstract ResultBean saveBatch(List<T> obj);
	public abstract ResultBean updateBatch(List<T> obj);
	public abstract ResultBean deleteBatch(List<T> obj);
	
	public abstract T getById(long id);


}
